package com.hulu73.spring.aop.core;

import java.io.Serializable;

@SuppressWarnings("serial")
public class DefaultPointcutAdvisor extends AbstractGenericPointcutAdvisor implements Serializable{

	private Pointcut pointcut = Pointcut.TRUE;
	
	public DefaultPointcutAdvisor() {
	}
	
	public DefaultPointcutAdvisor(Advice advice) {
		this(Pointcut.TRUE, advice);
	}
	
	public DefaultPointcutAdvisor(Pointcut pointcut, Advice advice) {
		this.pointcut = pointcut;
		setAdvice(advice);
	}

	@Override
	public Pointcut getPointcut() {
		return this.pointcut;
	}

}
